package online.afeibaili.storebackendframework.model;

public class Coupon {
    private long createTime; // 创建时间
    private double discount; // 优惠折扣
    private double reprice; // 优惠价格
    private double min; // 优惠最低价格
    private int quantity; // 优惠卷数量
    private String name; // 持有人是否使用
    private long expireTime; // 到期时间

    public Coupon() {
    }

    public Coupon(long createTime, double discount, double reprice, double min, int quantity, String name, long expireTime) {
        this.createTime = createTime;
        this.discount = discount;
        this.reprice = reprice;
        this.min = min;
        this.quantity = quantity;
        this.name = name;
        this.expireTime = expireTime;
    }

    /**
     * 获取
     * @return createTime 创建日起(主键)
     */
    public long getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime 创建日起(主键)
     */
    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return discount
     */
    public double getDiscount() {
        return discount;
    }

    /**
     * 设置
     * @param discount 优惠折扣
     */
    public void setDiscount(double discount) {
        this.discount = discount;
    }

    /**
     * 获取
     * @return reprice
     */
    public double getReprice() {
        return reprice;
    }

    /**
     * 设置
     * @param reprice 优惠价格
     */
    public void setReprice(double reprice) {
        this.reprice = reprice;
    }

    /**
     * 获取
     * @return min
     */
    public double getMin() {
        return min;
    }

    /**
     * 设置
     * @param min 优惠最低价格
     */
    public void setMin(double min) {
        this.min = min;
    }

    /**
     * 获取
     * @return quantity
     */
    public int getQuantity() {
        return quantity;
    }

    /**
     * 设置
     * @param quantity
     */
    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name 持有人是否使用
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return expireTime
     */
    public long getExpireTime() {
        return expireTime;
    }

    /**
     * 设置
     * @param expireTime 到期时间
     */
    public void setExpireTime(long expireTime) {
        this.expireTime = expireTime;
    }

    public String toString() {
        return "Coupon{createTime = " + createTime + ", discount = " + discount + ", reprice = " + reprice + ", min = " + min + ", quantity = " + quantity + ", name = " + name + ", expireTime = " + expireTime + "}";
    }
}
